import request from '../request/index.js'
//推荐产品
export function listGoods(page,type,order) {
    let limit = 6
    let url = '/api/goods/list'
    let params = {
        limit:limit,
        page:page,
        type,
        order
    }
    return request.get(url,{params})
}

//获取所有的分类
export function listType() {
    let params = {
        type:1
    }
    let url =  '/api/goods/type'
    return request.get(url,{params})
}